import request from '@/utils/request'

const refundApi = {
    /**
     * 退款记录
     */
    lists(params: {
        page_no?: number;
        page_size?: number;
        user?: string;
        order_sn?: number;
        refund_sn?: number;
        start_time?: string;
        end_time?: string;
    }): Promise<any> {
        return request.get({
            url: '/finance/refund/lists',
            params
        })
    },

    /**
     * 重新退款
     */
    again_refund(record_id: number): Promise<any> {
        return request.post({
            url: '/finance/refund/again_refund',
            params: {
                id: record_id
            }
        })
    }
}

export default refundApi
